package cn.wolfcode.wolf2w.redis;

import cn.wolfcode.wolf2w.domain.UserInfo;

public interface IUserRedisService {
    /**
     * 缓存注册验证码
     * @param phone:手机号
     * @param code:验证码
     */

    void setVerifyCode(String phone,String code);

    //获取注册验证码
    String getVerifyCode(String phone);

    //设置登录token
    String setToken(UserInfo user);


    //通过token获取登录用户对象
    UserInfo getUserByToken(String token);
}
